﻿<UserControl x:Class="PairingMatrix.View.AbsenteesBoxControl" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:Interactivity="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" xmlns:Behavior="clr-namespace:PairingMatrix.View.Behavior" mc:Ignorable="d" Height="500" Width="340">

	<Grid>
		<Rectangle x:Name="Absentees" Height="500" Width="340" Fill="#B09BBB57" Stroke="#456D823B" RadiusX="10" RadiusY="10" />
		<TextBlock Text="Absentees" Style="{StaticResource CardPartitionText}" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,5,0,0" />
        <Image Name="collapseImage" Source="/PairingMatrix;component/View/Image/Collapse.png" Height="30" Width="30" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5,5,0,0" >
            <Image.RenderTransform>
                <RotateTransform x:Name="collapseImageRotate" CenterX="15" CenterY="15" />
            </Image.RenderTransform>
        </Image>
		<Rectangle Name="hideAbsenteesControl" RadiusX="5" RadiusY="5" Fill="Transparent" Stroke="Black" Height="30" Width="30" MouseLeftButtonDown="hideAbsenteesControl_MouseLeftButtonDown" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5,5,0,0" />
	</Grid>
	<UserControl.RenderTransform>
		<TransformGroup>
			<RotateTransform x:Name="rotateTransform" CenterX="20"/>
			<TranslateTransform x:Name="translateTransform" />
		</TransformGroup>
	</UserControl.RenderTransform>
	<Interactivity:Interaction.Behaviors>
		<Behavior:ArrangeAbsenteesControlBehavior />
	</Interactivity:Interaction.Behaviors>
</UserControl>
